package top.cwk.dubbo.entity.customer;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName ShoppingCart
 * @Description TODO
 * @Author 维康
 * @Date 2018/7/28 17:40
 * @Version 1.0
 **/
public class ShoppingCart implements Serializable {

    private Long cratId;

    private List<Goods> goodsList;

    private Double totalPrice;

    private double discount;

    public Long getCratId() {
        return cratId;
    }

    public void setCratId(Long cratId) {
        this.cratId = cratId;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "cratId=" + cratId +
                ", goodsList=" + goodsList +
                ", totalPrice=" + totalPrice +
                ", discount=" + discount +
                '}';
    }
}
